package com.fingard.dsp.bank.reqrespobj.decontract;

import java.util.HashMap;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.decontract.detail.RetAtsDeContractDetail;
import com.fingard.xml.XmlTextWriter;

public class RetAtsDeContract extends RetAtsBase {
	public RetAtsDeContract(ReqRespHeader p_header){
		retHeader = p_header;
		retXmlWriter = new XmlTextWriter();
	}
	
	public void writeRetDetail(RetAtsDeContractDetail p_detail) throws  Exception{
		writeStart();
		retDetail = p_detail;
		
		p_detail.writeToXml(retXmlWriter);
		
		retXmlWriter.writeEndElement();
		writeEnd();
	}
	
	public RetAtsDeContractDetail retDetail;
	public HashMap<String,String> getRetAtsHashMap() {
		return retDetail.writeToHash();
    }
}
